<!-- !Main -->
<div id="main" class="sidebar-right"><!-- class="sidebar-none", class="sidebar-left", class="sidebar-right" -->

    <div class="wf-wrap">
        <div class="wf-container-main">

            <div id="content" role="main" class="content">

                <article class="post">

                    <h1 class="entry-title">Cập nhật tài khoản</h1>
                    <div class="hr-breadcrumbs divider-heder">
                        <div class="assistive-text">You are here:</div>
                        <ol class="breadcrumbs wf-td text-small flat">
                            <li><a href="<?php echo $this->baseUrl?>">Home</a></li>
                            <li><a href="<?php echo $this->createUrl('/web/customer/update')?>">Tài khoản</a></li>
                        </ol>
                    </div>
                    <div class="wf-container">
                        <div class="wf-cell wf-2-2">

                            <?php $this->widget('web.components.widgets.AlertWidget');?>

                            <blockquote class="shortcode-blockquote block-style-widget">
                                <em>
                                    Cập nhật thông tin tài khoản của bạn.
                                </em>
                            </blockquote>
                        </div>
                    </div>

                    <?php $form=$this->beginWidget('CActiveForm', array(
                            'id'=>'update-form',
                            'enableClientValidation'=>false,
                            'clientOptions'=>array(
                                'validateOnSubmit' => false,
                                'validateOnChange' => false,
                            ),
                            'enableAjaxValidation'=>false,
                            'htmlOptions' => array('class' => 'dt-form')
                        )); ?>
                    <p>
                        <?php echo $form->labelEx($model,'phone', array('class' => 'block')); ?>
                        <?php echo $form->textField($model,'phone',array('disabled'=> 'disabled','maxlength'=>255)); ?>
                        <?php echo $form->error($model,'phone');?>
                    </p> 
                    <p>
                        <?php echo $form->labelEx($model,'name', array('class' => 'block')); ?>
                        <?php echo $form->textField($model,'name',array('placeholder'=> 'Họ và tên','maxlength'=>255)); ?>
                        <?php echo $form->error($model,'name');?>
                    </p> 

                    <p>
                        <?php echo $form->labelEx($model,'address', array('class' => 'block')); ?>
                        <?php echo $form->textField($model,'address',array('placeholder'=> 'Họ và tên','maxlength'=>255)); ?>
                        <?php echo $form->error($model,'address');?>
                    </p> 
                    <p>
                        <?php echo $form->labelEx($model,'dob', array('class' => 'block')); ?>
                        <?php $this->widget('zii.widgets.jui.CJuiDatePicker', array(
                                //'name'=>'User[dob]',
                                'attribute'=>'dob',
                                'model'=>$model,
                                'value' => $model->dob, 
                                'language'=>'vi',
                                'options'=>array(
                                    'showAnim'=>'fold',
                                    'dateFormat'=>'dd-mm-yy',
                                    'changeMonth' => 'true',
                                    'changeYear' => 'true',
                                    'yearRange' => '-90:-10',
                                    'defaultDate' => '01-01-1985'
                                ),
                                'htmlOptions'=>array(                                     
                                    'placeholder'=> 'Ngày tháng năm sinh'
                                ),
                            ));?>
                        <?php echo $form->error($model,'dob');?>
                    </p> 
                    <p>
                        <?php echo $form->labelEx($model,'gender', array('class' => 'block')); ?>
                        <?php echo $form->dropDownList($model,'gender', Customer::model()->genderData, array('empty' => 'Chọn...')); ?>
                        <?php echo $form->error($model,'gender');?>
                    </p> 
                    <p>
                        <?php echo $form->checkBox($model,'is_receive_sms'); ?>
                        <?php echo $form->labelEx($model,'is_receive_sms', array('class' => '')); ?>
                    </p> 
                    <p>
                        <button class="dt-btn btn-dark-blue dt-btn-xl flat" type="submit">Cập nhật tài khoản</button>                               
                    </p>

                    <?php $this->endWidget(); ?>

                    <div class="gap-10"></div>
                    <div class="hr-thin"></div>
                    <div class="gap-10"></div>



                </article><!-- .post -->


            </div><!-- #content -->


            <?php $this->renderPartial('//common/sidebar');?>

        </div><!-- .wf-container -->
    </div><!-- .wf-wrap -->
</div><!-- #main -->